package test01;

import java.util.Map;
//StatisticsResult.java - 统计结果封装类
class StatisticsResult {
    private Map<String, Integer> wordFrequency;
    private int totalWords;

    public StatisticsResult(Map<String, Integer> wordFrequency, int totalWords) {
        this.wordFrequency = wordFrequency;
        this.totalWords = totalWords;
    }

    public Map<String, Integer> getWordFrequency() {
        return wordFrequency;
    }

    public int getTotalWords() {
        return totalWords;
    }
}
